package com.class07.encapsulation;


import com.class07.AnimalTest;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/3/29 8:35
 */
public class TestMain {
    {

    }
    public static void main(String[] args) {
        new A().print();
        AnimalTest animalTest = new AnimalTest();



    }
}
 class A {
    public void print(){
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
        System.out.println("Hello World!");
    }

 }

 class B {
     public static void main(String[] args) {
         new A().print();
     }
}

class C {
    public static void main(String[] args) {
        new A().print();
    }
}


